package com.example.shopping.service;

import com.example.shopping.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/*
Create by 苍狼 于 2020/1/16
站在巅峰看世界，
落在深渊思人生。
*/
@Repository
public interface UserService {
    //登录
    User login(String uname, String upwd);

    //新增
    int add(User user);

    //删除
    int delete(int id);

    User selectByUname(String uname);
}
